// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** configInterface POST /v1/easyapi/server/interface/configInterface */
export async function configInterfaceUsingPost(
  body: API.ConfigSqlApiParam,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/v1/easyapi/server/interface/configInterface', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** generateInterface POST /v1/easyapi/server/interface/generateInterface */
export async function generateInterfaceUsingPost(
  body: API.GenerateApiParam,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/v1/easyapi/server/interface/generateInterface', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getInterfaceInfo POST /v1/easyapi/server/interface/getInterfaceInfo */
export async function getInterfaceInfoUsingPost(
  body: API.ApiInfoPageParam,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseApiInfoVo_>('/v1/easyapi/server/interface/getInterfaceInfo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** interfaceOperation POST /v1/easyapi/server/interface/interfaceOperation */
export async function interfaceOperationUsingPost(
  body: API.ApiOperationParam,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/v1/easyapi/server/interface/interfaceOperation', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getMarketInterfaceInfo POST /v1/easyapi/server/interface/marketInterfaceInfo */
export async function getMarketInterfaceInfoUsingPost(
  body: API.ApiInfoPageParam,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageApiMarketInfo_>(
    '/v1/easyapi/server/interface/marketInterfaceInfo',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    },
  );
}

/** pageInterfaceInfo POST /v1/easyapi/server/interface/pageInterfaceInfo */
export async function pageInterfaceInfoUsingPost(
  body: API.ApiInfoPageParam,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageApiInfoPageVo_>(
    '/v1/easyapi/server/interface/pageInterfaceInfo',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    },
  );
}
